<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/8/23
 * Time: 11:29
 * name:新增班级上课时间
 * url:/erpSchoolClass/add_class_time
 */

$oct_type       = $route->bodyParams['oct_type'];               //上课类型 0-单次课 1-周循环
$oct_start_time = $route->bodyParams['oct_start_time'];         //课程开始时间（精确到分）
$oct_end_time   = $route->bodyParams['oct_end_time'];           //课程结束时间（精确到分）
$oct_oscid      = $route->bodyParams['oct_oscid'];              //关联班级ID
$oct_is_archive = $route->bodyParams['oct_is_archive'];         //是否归档 0-否 1-是'
$oct_homework_end_time     = $regexpObj->bodyV($response,$route,'oct_homework_end_time','NORMAL');     //季度
$oct_ocid     = $regexpObj->bodyV($response,$route,'oct_ocid','NORMAL');     //季度
//写入数组
$insertArr = [
    'oct_type'          =>$oct_type,
    'oct_start_time'    =>$oct_start_time,
    'oct_end_time'      =>$oct_end_time,
    'oct_oscid'         =>$oct_oscid,
    'oct_is_archive'    =>$oct_is_archive,
    'oct_homework_end_time'    =>$oct_homework_end_time,
    'oct_ocid'          =>$oct_ocid,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_class_time",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );